// 活动列表服务

import fetch from '../utils/fetch.js';
const findActivityListApi = 'findActivityList';
const findActivityByIdApi = 'findActivityById';
const findUserActivityListApi = 'findUserActivityList';
class ActiveService {
	// 活动列表
	async activityList(data) {
		const activityListdata = await fetch(findActivityListApi, data);
		return activityListdata
	}
	// 活动详情
	async activityDetail(data) {
		const detail = await fetch(findActivityByIdApi, data);
		return detail
	}
	// 我的活动列表
	async activityUser(data) {
		const list = await fetch(findUserActivityListApi, data);
		return list
	}
}
export default new ActiveService()